package ooday01;

public class Teacher extends Person{
    String salary;

    Teacher(String name,int age,String address,String salary){
        this.name= name;
        this.age = age;
        this.address = address;
        this.salary = salary;
    }
    Teacher(){}
    void teach(){
        System.out.println(name+"正在讲课");
    }
}
